import { createApp, Directive } from 'vue'
import './style.css'
import App from './App.vue'
import router from '@/router'
// 引入ant-design
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.less';
// 引入pinia状态管理工具
import { createPinia } from "pinia";
const pinia = createPinia();

const app = createApp(App);

// 自定义指令
import * as directive from '@/directive';
Object.keys(directive).forEach(key => {
    app.directive(key, (directive as { [key: string]: Directive })[key]);
});
// 挂载
app
    .use(router)
    .use(Antd)
    .use(pinia)
    .mount('#app');

